home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2111 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.5 KB  |  52 lines

  1. Newsgroups: gnu.g++.help,comp.lang.c++
  2. Path: in2.uu.net!etnibsd!sandeep
  3. From: sandeep@etnibsd.uucp (Sandeep Pathak)
  4. Subject: Re: I would like to learn socket programming (tcp/ip)
  5. Message-ID: <1996Jan15.152541.26621@etnibsd.uucp>
  6. Reply-To: sandeep%etnibsd@uunet.uu.net
  7. Organization: Eaton Ion Beam Systems Div., Beverly, MA
  8. References: <9601111635.aa01715@Mafalda.isoft.com.ar>
  9. Date: Mon, 15 Jan 1996 15:25:41 GMT
  10.  
  11. In article <9601111635.aa01715@Mafalda.isoft.com.ar> diego@mafalda.ai.mit.EDU (Diego A. Balbi) writes:
  12. [snip]
  13. >
  14. >Hi !
  15. >     "Unix Network Programing" book of W. Richard Stevens
  16. >     has been useful for me to understand tcp/ip usage in "C"
  17. >     language and several net concepts ( I've used those "C" functions
  18. >     in "C++" programs to build my own -little!- classes ).
  19. >     
  20. >     Good luck with the battle !
  21. >           
  22. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. >Diego A. Balbi                           InterSoft Argentina S.A.
  24. >System Software Engineer                  Av. Cordoba 883 Piso 13
  25. >diego@isoft.com.ar                       (1054) Bs As - Argentina
  26. >                           ,,,              Voice: +54-1-318-8900
  27. >                         0(o o)0              Fax: +54-1-318-8999
  28. >~~~~~~~~~~~~~~~~~~~\--oOO--(_)--OOo-/~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. >
  30.  
  31. Hi,
  32. I was _just_ about to post a query about this. I am doing a project for
  33. a C++ course. I am writing simple wrapper classes for socket and other related 
  34. IP abstractions. I basically modeled classes based on their traditional 
  35. networking counterparts, eg: in Socket class, I have a ref. count similar
  36. to what the kernel keeps for a socket fd. But I was stumped when it came to a 
  37. "fork". The kernel will handle copies of the socket fd. but what about my 
  38. Socket object?! I can't think of any way to maintain conformity w/ the kernel
  39. unless parent and child communicate in a way. 
  40. Anybody out in netland dealt with this? Or should I tentatively assume that
  41. concurrent servers are not easily possible with my object abstractions.
  42. Any pointer GREATLY appreciated!!
  43.  
  44. -deep
  45. -----------------------------------------------------------------
  46. Sandeep Pathak                  ! secs:  (508)921-9696 
  47. Eaton Corporation               ! mins:  (508)927-3652
  48. Semiconductor Equipment Div.    ! hrs :  spathak@bev.etn.com
  49. "Whatever u can do or dream u   ! days:     108 Cherry Hill Drive
  50. can do..begin it" -- Goethe     !        Beverly  MA 01915
  51. -----------------------------------------------------------------
  52.